home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / CalendarEngine.idl < prev    next >
Text File  |  1996-05-01  |  2KB  |  80 lines

  1. /*
  2.      File:        CalendarEngine.idl
  3.  
  4.      Contains:    IDL interface for the CalendarEngine class
  5.  
  6.      Version:    Technology:    System 8.0
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1995-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16. */
  17.  
  18.  
  19. #ifndef __CALENDARENGINE__
  20. #define __CALENDARENGINE__
  21.  
  22. #include <somobj.idl>
  23. #include <somcls.idl>
  24. #include <CalendarDate.idl>
  25. #include <TextObjects.idl>
  26. #include <TimeObjects.idl>
  27. #include <Types.idl>
  28.  
  29.  
  30. interface TCalendarEngine : SOMObject
  31. {
  32.     
  33.     attribute    LocaleObjectRef        fCalendarObjectRef;
  34.     attribute    UInt32                fCalendarID;
  35.     attribute    UInt32                fDivisionCount;
  36.     
  37.     void SetCalendarObjectRef(in LocaleObjectRef localeObjectRef);
  38.     OSStatus GetCalendarIdentifier(in UInt32 *id);
  39.     OSStatus GetCalendarDivisionCount(in UInt32 *count);
  40.     OSStatus GetCalendarFieldCount(in UInt32 theDivision,in UInt32 *count);
  41.     OSStatus GetCalendarDivisionName(in UInt32 theDivsion,in TextObject name);
  42.     OSStatus GetCalendarFieldName(in UInt32 division, in UInt32 field, in TextObject name);
  43.     OSStatus ConvertCalendarDateToTimeObject(in TCalendarDate *calendarDate,in TimeObject result);
  44.     OSStatus ConvertTimeObjectToCalendarDate(in ConstTimeObjectPtr timeObj,in TCalendarDate *result);
  45.     OSStatus AddCalendarDateToTimeObject(in ConstTimeObjectPtr source,in TCalendarDate *delta, in TimeObjectPtr result);
  46.     OSStatus SubtractCalendarDateFromTimeObject(in ConstTimeObjectPtr source, in TCalendarDate *delta, in TimeObjectPtr result);
  47.  
  48.     
  49. #ifdef __SOMIDL__
  50.     implementation
  51.     {
  52.         passthru C_h_before =     "#include <TimeObjects.h>";
  53.         releaseorder:     _get_fCalendarObjectRef,
  54.                         _set_fCalendarObjectRef,
  55.                         _get_fCalendarID, 
  56.                         _set_fCalendarID, 
  57.                         _get_fDivisionCount, 
  58.                         _set_fDivisionCount, 
  59.                         SetCalendarObjectRef,
  60.                         GetCalendarIdentifier, 
  61.                         GetCalendarDivisionCount, 
  62.                         GetCalendarFieldCount,
  63.                         GetCalendarDivisionName,
  64.                         GetCalendarFieldName,
  65.                         ConvertCalendarDateToTimeObject,
  66.                         ConvertTimeObjectToCalendarDate,
  67.                         AddCalendarDateToTimeObject,
  68.                         SubtractCalendarDateFromTimeObject;
  69.         somInit: override;
  70.         majorversion = 1;
  71.         minorversion = 1;
  72.         
  73.     };
  74. #endif
  75.  
  76. };
  77.  
  78. #endif
  79.  
  80.